using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BlueFinity.mvNET.CoreObjects;

namespace fenk.Sistema
{
    public partial class Users : mvLibrary.BaseForm
    {
        public Users()
        {
            InitializeComponent();
        }
       
        public override void AfterReadItem()
        {
            // blanqueo para usuarios que ya existen
            button1.Enabled = (ItemStatus == Status.New) ? false : true;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Confirma ?", "Blanquear password", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                UniItem.Replace(7, "RESET");
            }
        }
    }
}

